import Layout from "@/layout";
import emptyLayout from "@/layout/emptyRouter.vue";
export default {
    path: "/group",
    meta: {
        title: "平台管理",
        roles: ["group"],
        icon: "el-icon-copy-document"
    },
    component: Layout,
    redirect: "/group/platform",
    children: [
        {
            path: "manager",
            meta: {
                title: "机构管理",
                roles: ["group:manager"],
                icon: "el-icon-s-order"
            },
            redirect: "/group/manager/pl-list",
            component: emptyLayout,
            children: [
                {
                    path: "list",
                    meta: {
                        title: "机构列表",
                        roles: ["group:manager:list"],
                        icon: "el-icon-tickets"
                    },
                    component: () =>
                        import("@/views/models/vrs/group/group.vue"),
                    name: "Group"
                },
                {
                    path: "department",
                    meta: {
                        title: "机构组织",
                        roles: ["group:department:list"],
                        icon: "el-icon-paperclip"
                    },
                    component: () =>
                        import("@/views/models/vrs/group/department.vue"),
                    name: "GroupDepartment"
                },
                {
                    path: "admin-list",
                    meta: {
                        title: "机构管理员",
                        roles: ["group:manager:group-admin:list"],
                        icon: "el-icon-s-custom"
                    },
                    component: () =>
                        import("@/views/models/user/groupAdmin/list.vue"),
                    name: "GroupAdminList"
                },
                {
                    path: "logRule",
                    meta: {
                        title: "机构注水规则",
                        roles: ["group:manager:log:rule"],
                        icon: "el-icon-s-claim"
                    },
                    component: () =>
                        import("@/views/models/vrs/group/groupLogRule.vue"),
                    name: "GroupLogRule"
                },
                {
                    path: "logRuleAdmin",
                    meta: {
                        title: "机构注水规则（细化版）",
                        roles: ["group:manager:log:rule1"],
                        icon: "el-icon-s-claim"
                    },
                    component: () =>
                        import(
                            "@/views/models/vrs/group/groupLogRuleAdmin.vue"
                        ),
                    name: "GroupLogRuleAdmin"
                }
            ]
        },
        {
            path: "log",
            meta: {
                title: "使用统计",
                roles: ["group:manager:log"],
                icon: "el-icon-s-data"
            },
            component: () => import("@/views/models/vrs/group/log.vue"),
            name: "GroupLog"
        },
        {
            path: "log-detail",
            meta: {
                title: "使用统计详情",
                roles: ["group:manager:log-detail"]
            },
            component: () =>
                import("@/views/models/vrs/group/groupLogDetail.vue"),
            name: "GroupUseLogDetail",
            hidden: true
        }
    ]
};
